package com.medical.data.mapper;

import com.medical.data.domain.ProjectData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medical.data.vo.GetProjectVo;
import com.medical.data.vo.ProjectResultVo;
import com.medical.data.vo.ProjectVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cj
 * @since 2024-02-06
 */
public interface ProjectDataMapper extends BaseMapper<ProjectData> {

    Integer getProjectByUserId(@Param("projectVo") ProjectVo projectVo);

    Integer getProjectCountByUser(@Param("getProjectVo")GetProjectVo getProjectVo, @Param("userId")String userId);

    List<ProjectResultVo> getProjectByUser(@Param("getProjectVo")GetProjectVo getProjectVo, @Param("current") Integer current, @Param("limit")Integer limit, @Param("userId")String userId);
}
